import { OmitType, PartialType } from '@nestjs/mapped-types';
import { CreateUserDto } from './create-user.dto';
import { Allow } from 'class-validator';

// 继承CreateUserDto,但是忽略password属性
export class QueryUserDto extends PartialType(
  OmitType(CreateUserDto, ['password'] as const),
) {
  @Allow()
  roleId?: number;
}
